package test.ribbon.server.controller;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import test.ribbon.server.RunServer;

@RestController
public class ServerControl {
	@RequestMapping("/")
	public String index() {
		return "index";
	}
	@RequestMapping("/test")
	public Map<String,Object> testMap(Boolean isSleep,HttpServletRequest req) throws InterruptedException{
		Map<String,Object> map = new HashMap<String, Object>();
		map.put("seriallizID", UUID.randomUUID().toString());
		map.put("request", req.getRequestURL().toString());
		return map;
	}
	 
	
}
